package com.doeis.common.utils;

import com.alibaba.fastjson.JSON;

public class RichTextJSONMap {
//	private int color;
//	private String text;
//	private int size;
//	private String family;
//	private boolean bold;
//	private boolean underline;
//	private boolean italic;
	
	private int c;//color
	private String t;//text
	private int s;//size
	private String f;//family
	private boolean b;//bold
	private boolean u;//underline
	private boolean i;//italic
	private float li;
	private float ri;
	private float fi;
	
	
	public RichTextJSONMap() {
		super();
		this.c = 0;
		this.s = 12;
		this.b = false;
		this.u = false;
		this.i = false;
		this.f = "宋体";
		this.li = 0.0f;
		this.ri = 0.0f;
		this.fi = 0.0f;
	}
	
	/**
	 * 文字颜色
	 * @return
	 */
	public int getC() {
		return c;
	}

	/**
	 * 文字颜色
	 * @param c
	 */
	public void setC(int c) {
		this.c = c;
	}

	/**
	 * 文字内容
	 * @return
	 */
	public String getT() {
		return t;
	}

	/**
	 * 文字内容
	 * @param t
	 */
	public void setT(String t) {
		this.t = t;
	}

	/**
	 * 文字大小
	 * @return
	 */
	public int getS() {
		return s;
	}

	/**
	 * size:文字大小
	 * @param s
	 */
	public void setS(int s) {
		this.s = s;
	}

	/**
	 * 字体
	 * @return
	 */
	public String getF() {
		return f;
	}

	/**
	 * 字体
	 * @param f
	 */
	public void setF(String f) {
		this.f = f;
	}

	/**
	 * 是否粗体
	 * @return
	 */
	public boolean isB() {
		return b;
	}

	/**
	 * 是否粗体
	 * @param b
	 */
	public void setB(boolean b) {
		this.b = b;
	}

	/**
	 * 是否下划线
	 * @return
	 */
	public boolean isU() {
		return u;
	}

	/**
	 * 是否下划线
	 * @param u
	 */
	public void setU(boolean u) {
		this.u = u;
	}

	/**
	 * 是否斜体
	 * @return
	 */
	public boolean isI() {
		return i;
	}

	/**
	 * 是否斜体
	 * @param i
	 */
	public void setI(boolean i) {
		this.i = i;
	}
	
	
	public float getLi() {
		return li;
	}

	public void setLi(float li) {
		this.li = li;
	}

	public float getRi() {
		return ri;
	}

	public void setRi(float ri) {
		this.ri = ri;
	}
	
	

	public float getFi() {
		return fi;
	}

	public void setFi(float fi) {
		this.fi = fi;
	}

	public String toJSONString(){
		String jsonString = null;
		try {
			return JSON.toJSONString(this);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return jsonString;
	}
	
	
}
